package com.card.demo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class card {
    private String cardId;
    private  String name;
    private  String Phone;
    private  double money;
    public  void addMoney(double money)
    {
        this.money+=money;
    }
    public void shopMoney(double money)
    {
        this.money-=money;
    }
}

